﻿#ifndef FORMPUBLISHER_H
#define FORMPUBLISHER_H

#include <QDialog>
#include "myhead.h"
#include "basepublisher.h"

namespace Ui {
class FormPublisher;
}

class FormPublisher : public QWidget
{
    Q_OBJECT

public:
    explicit FormPublisher(QWidget *parent = 0);
    ~FormPublisher();
    void setComm(BasePublisher *pub);

private slots:
    void on_btnSend_clicked();

private:
    Ui::FormPublisher *ui;
    BasePublisher *m_pub=nullptr;

    void setCfgWidget(QWidget *w);

    void sendMsg();
};

#endif // FORMPUBLISHER_H
